package com.ruoyi.work.service;

import com.ruoyi.work.domain.WorkOfficeType;

import java.util.List;

/**
 * @Author: MMDZ
 * @Desc:
 */
public interface IWorkOfficeTypeService {
    /**
     * 查询所有事务种类列表 - 条件 分页
     *
     * @param workOfficeType
     * @return
     */
    List<WorkOfficeType> selectWorkOfficeTypeList(WorkOfficeType workOfficeType);

    /**
     * 查询所有事务种类列表
     *
     * @return
     */
    List<WorkOfficeType> selectOfficeTypeAll();

    /**
     * 根据id查询事务种类详情
     *
     * @param officeId
     * @return
     */
    WorkOfficeType selectWorkOfficeTypeById(Long officeId);

    /**
     * 事务种类名称是否重复
     *
     * @param workOfficeType
     * @return
     */
    String checkOfficeNameUnique(WorkOfficeType workOfficeType);

    /**
     * 新增
     *
     * @param workOfficeType
     * @return
     */
    int insertWorkOfficeType(WorkOfficeType workOfficeType);

    /**
     * 修改
     *
     * @param workOfficeType
     * @return
     */
    int updateWorkOfficeType(WorkOfficeType workOfficeType);

    /**
     * 删除
     *
     * @param officeIds
     * @return
     */
    int deleteWorkOfficeTypeByIds(Long[] officeIds);

    /**
     * 统计项目里是否包含事务
     *
     * @param officeId
     * @return
     */
    int countFillOfficeById(Long officeId);
}
